﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace bloqueo_teclasEspeciales
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private frmViewCliente formularioblok=null;

        private frmViewCliente FormInstance
        {
            get
            {
                if (formularioblok == null)
                {
                    formularioblok = new frmViewCliente("");
                    formularioblok.Disposed += new EventHandler(form_Disposed);
                }
                return formularioblok;
            }
        }

        void form_Disposed(object sender, EventArgs e)
        {
            formularioblok = null;
        }

      public  void mostrarFormulario()
        {
            frmViewCliente formu = this.FormInstance;
            formu.Show();
          //  formu.BringToFront();
        }

       public void cerrarFormulario()
        {
            frmViewCliente formu = this.FormInstance;
            formu.BringToFront();
            formu.Close();
            
        }
        public Form1(String subprograma)
        {
           
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            /*frmViewCliente b = new frmViewCliente();
            b.MontrarFormulario();*/
        }
    }
}
  